package com.icloud.system.api.feign;

import com.icloud.common.core.api.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@FeignClient(value = "icloud-system", contextId = "adminPermissionFeignClient", path = "/internal/permission")
public interface AdminPermissionFeignClient {
    /**
     * 获取权限和角色关联数据
     */
    @RequestMapping(value = "/getPermissionRolesMap", method = RequestMethod.GET)
    @ResponseBody
    CommonResult<Map<Object, Object>> getPermissionRolesMap();
}
